unit u_pesquisatipoobs;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, u_pesquisapadrao, FMTBcd, DB, DBClient, Provider, SqlExpr,
  Grids, DBGrids, JvExDBGrids, JvDBGrid, StdCtrls, AdvEdit, AdvGlowButton,
  ExtCtrls, AdvGroupBox;

type
  TFRM_PesquisaTipoOBS = class(TFRM_PesquisaPadrao)
    cdsPesquisarCOD_OBS: TIntegerField;
    cdsPesquisarDESCRICAO: TStringField;
    procedure edtPesquisarKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
    procedure FormShow(Sender: TObject);

  end;

var
  FRM_PesquisaTipoOBS: TFRM_PesquisaTipoOBS;

implementation

{$R *.dfm}

procedure TFRM_PesquisaTipoOBS.edtPesquisarKeyDown(Sender: TObject;
  var Key: Word; Shift: TShiftState);
begin
  inherited;
  cdsPesquisar.Locate('descricao',edtPesquisar.Text,[loPartialKey,loCaseInsensitive]);
end;

procedure TFRM_PesquisaTipoOBS.FormShow(Sender: TObject);
begin
  inherited;
  lblTotal.Caption := lblTotal.Caption + ' Tipos de OBS ativos';
end;

end.
